﻿@model Toasts.Models.LoginModel

@using (Html.BeginForm("JsonLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { id = "loginForm" }))
{
    @Html.AntiForgeryToken()

    
    <div class="loginpanel">
        <div>
            @Html.LabelFor(m => m.UserName)
        </div>
        <div class="input-control">
            @Html.TextBoxFor(m => m.UserName, new { autofocus = "autofocus", id = "loginName" })

            @Html.ValidationMessageFor(m => m.UserName)
        </div>

        <div>
            @Html.LabelFor(m => m.Password)
        </div>
        <div class="input-control">
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <br />
        <div  >
            @Html.CheckBoxFor(m => m.RememberMe)
            @Html.LabelFor(m => m.RememberMe)
        </div>


    </div>
    <br />
    <div>
        <input type="submit" value="Log in" class="command-button bg-color-blue fg-color-white" />
    </div>


    @Html.ValidationSummary()
     
}